package designPattern.prototype;

/**
 * Created by cdxuhongya on 2017/1/6.
 */
public class Test {
    public static void main(String[] args) {
        Prototype p1 = new ConcretePrototype("prootype");

        Prototype p2 = (Prototype) p1.clone();

        System.out.println(p1 == p2);

        System.out.println(p1.getName());
        System.out.println(p2.getName());
    }
}
